Fix problem with side-window dimension calculation
authorjustbur <justin@burkett.cc>
Mon, 11 Jan 2016 14:56:49 +0000 (09:56 -0500)
committerjustbur <justin@burkett.cc>
Mon, 11 Jan 2016 14:56:49 +0000 (09:56 -0500)
The fringes were not being included in version 24. This makes the
calculation consistent with the left/right side-window calculation and
fixes #97.

which-key.el

index a952a9831dcf2046b9ee87e0b61be386c6de98ce..c5ce0ff506ad695b5e6cbd8ce97dc25ca8c359f0 100644 (file)
@@ -1019,7 +1019,8 @@ width) in lines and characters respectively."
         (- (if (member which-key-side-window-location '(left right))
                (which-key--total-width-to-text (which-key--width-or-percentage-to-width
                                                 which-key-side-window-max-width))
-             (frame-width))
+             (which-key--total-width-to-text (which-key--width-or-percentage-to-width
+                                              1.0)))
            which-key-unicode-correction))))
 
 (defun which-key--frame-max-dimensions ()